package com.sxpi.zixun.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.pug.generator.anno.PugDoc;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/17 10:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderBo implements Serializable {

    @PugDoc(name="主键")
    private Long id;
    @PugDoc(name="订单号")
    private String ordernumber;
    @PugDoc(name="交易号")
    private String transactionId;
    @PugDoc(name="用户ID")
    private Long userid;
    @PugDoc(name="用户姓名")
    private String username;
    @PugDoc(name="用户昵称")
    private String nickname;
    @PugDoc(name="用户头像")
    private String avatar;
    @PugDoc(name="支付方式 weixin alipay")
    private String paymethod;
    @PugDoc(name="支付地址")
    private String ipaddress;
    @PugDoc(name="支付IP")
    private String ip;
    @PugDoc(name="支付时间")
    private Date createTime;
    @PugDoc(name="修改时间")
    private Date updateTime;
    @PugDoc(name="1 课程 2 专栏 3 会员")
    private Integer type;
    @PugDoc(name="支付金额")
    private BigDecimal paymoney;
    @PugDoc(name="是否是vip")
    private Integer isvip;
    @PugDoc(name="是否使用优惠券")
    private Integer isdiscount;
    @PugDoc(name="是否支付 0未支付 1已经支付 ")
    private Integer status;
    @PugDoc(name="购买id")
    private Long payid;
    @PugDoc(name="图片")
    private String img;
    @PugDoc(name="标题")
    private String title;
}
